package com.xyz.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 用户测试业务类
 */
@Component /** 注册为spring的组件bean **/
public class UserService {
    /**
     * 测试方法
     *
     * @param name
     *            参数:输入名称
     * @return 返回结果
     */
    private String service_name;
    private int s_id;

    public String sayHello(String name) {
        return "Hello," + name;
    }

    public UserService(){}
    public UserService(String name,int s_id){
        this.service_name = name;
        this.s_id = s_id;
    }
}
